'use strict'
var gulp = require('gulp');
var less = require('gulp-less');
var path = require('path');
var concat = require('gulp-concat')

var autoprefixer = require('gulp-autoprefixer');

gulp.task('less-main', function() {
  return gulp.src('./src/**/**/*.less')
    .pipe(less({
      paths: [path.join(__dirname, 'less', 'includes')]
    }))
    .pipe(autoprefixer({
      browsers: ['last 2 versions'],
      cascade: true,
      remove: true
    }))
    .pipe(concat('bee.css'))
    .pipe(gulp.dest('./dist/css'));
});

gulp.task('default', function() {
  gulp.start('less-main');
  gulp.run( 'less-main');
});